Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(android): setup uniffi infra #8828

Draft
wants to merge 1 commit into
base: canary
Choose a base branch
from

Conversation

Brooooooklyn
Copy link
Member

No description provided.

Copy link

graphite-app bot commented Nov 14, 2024

Your org has enabled the Graphite merge queue for merging into canary

Add the label “merge” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix.

You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link.

Copy link
Member Author

Brooooooklyn commented Nov 14, 2024

This stack of pull requests is managed by Graphite. Learn more about stacking.

Comment on lines 11 to 13
let hash = Stamp::mint(
unsafe { String::from_raw_parts(resource.cast_mut().cast(), length, length) },
Some(bits),
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The current use of String::from_raw_parts is unsafe and could lead to undefined behavior since it takes ownership of the raw pointer without proper lifetime guarantees. Consider using CStr::from_ptr(resource).to_str().unwrap_or_default() instead, which provides safe conversion from a C string pointer to a Rust string while properly handling null terminators and invalid UTF-8.

Spotted by Graphite Reviewer

Is this helpful? React 👍 or 👎 to let us know.

Copy link

nx-cloud bot commented Nov 14, 2024

☁️ Nx Cloud Report

CI is running/has finished running commands for commit 9651325. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this CI Pipeline Execution


✅ Successfully ran 1 target

Sent with 💌 from NxCloud.

Copy link

codecov bot commented Nov 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 70.19%. Comparing base (5994814) to head (9651325).

Additional details and impacted files
@@           Coverage Diff           @@
##           canary    #8828   +/-   ##
=======================================
  Coverage   70.19%   70.19%           
=======================================
  Files         550      550           
  Lines       34005    34005           
  Branches     3052     3052           
=======================================
  Hits        23871    23871           
  Misses       9762     9762           
  Partials      372      372           
Flag Coverage Δ
server-test 77.07% <ø> (ø)
unittest 46.08% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.


🚨 Try these New Features:

@Brooooooklyn Brooooooklyn force-pushed the 11-14-feat_android_native_module branch 2 times, most recently from 5b57ec0 to b96bf72 Compare November 19, 2024 13:24
@Brooooooklyn Brooooooklyn changed the title feat(android): native module feat(android): setup uniffi infra Nov 19, 2024
@Brooooooklyn Brooooooklyn force-pushed the 11-14-feat_android_native_module branch from b96bf72 to 2288985 Compare November 22, 2024 03:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant